
<%@ tag body-content="empty" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.groupwareworkbench.org.br/taglibs/reflection" prefix="r" %>
<%@ attribute name="genericEntity" required="true" rtexprvalue="true" type="br.org.groupware_workbench.coreutils.GenericEntity" %>
<%@ attribute name="recommendMgr" required="true" rtexprvalue="true" type="br.org.groupware_workbench.collabElement.coop.recommendMgr.api.RecommendMgrInstance" %>

<r:callMethod methodName="getRelated" instance="${recommendMgr}" var="recommendItems" >
    <r:param type="br.org.groupware_workbench.coreutils.GenericEntity" value="${genericEntity}" />
</r:callMethod>

<div class="simple_list">
    <h1>Relacionados:</h1>
    <ul>
        <c:forEach items="${recommendItems}" var="recommend" >
            <li>
                <a href="<c:url value="/groupware-workbench/${recommend.genericEntityFrom.idInstance}/${nameCollablet}/${recommend.genericEntityTo.id}/show" />">
                    <c:out value="${recommend.genericEntityTo.title}" />
                </a>,
                Similaridade : <c:out value="${recommend.similaritysProduct}" />
            </li>
        </c:forEach>
    </ul>
</div>
